﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<OnlineLibrary.ToLinq.tblUser>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete User
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete Confirm</h2>
    <p>
        <%=ViewData["Warning"] %> 
    </p>
    
    <div>
        <% if (ViewData["Warning"].ToString() == "You cann't delete this user" ) 
       { %>
        <div>
            <%: Html.ActionLink("Back to List", "Index") %>
        </div>
        <% } else
           { %>
            <div> <% using (Html.BeginForm()) {%>
                <input type="submit" value="Delete" /> <% } %>
            </div>
           <% } %>
        </div>

</asp:Content>

